package com.itzz.ssm.mapper;


import com.itzz.ssm.domain.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:liuweibo
 * @Date Create in 2021/8/11 14:24
 * @Description:
 */
public interface RoleMapper {
    public List<Role>  findRole();
    public void saveRole(Role role);
    public void deleteRole(@Param("id") int id);
    public void deleteRoleUser(@Param("id") int id);
    /*添加用户关系表*/
    public void addRoleUsers(@Param("userId") int userId,@Param("roleId") int[] roleId);
}
